package singleton.demo1.strategy;

import java.util.Comparator;

public class TestStrategy01 implements Comparator<Test01> {
    @Override
    public int compare(Test01 o1, Test01 o2) {
        if(o1.width > o2.width){
            return 1;
        }else if(o1.width<o2.width){
            return -1;
        }else{
            return 0;
        }
    }
}
